package SpLib.Com
{
	public function Str2Key(str:String):uint
	{
		var rs:uint = 0;
		for(var i:int=0;i<str.length;i++)
		{
			var code:Number= str.charCodeAt(i);
			var tmp:uint = 0;
			tmp = code & 0x000000ff;
			rs *= 16777619;
			rs ^= uint(tmp);
			rs *= 16777619;
			tmp = (code&0x0000ff00)>>>8;
			rs ^= uint(tmp);
		}
		
		return rs
	}
}
